package com.panfeng.xcloud.gateway.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 反爬虫配置类
 *
 * @author xiaobo
 * @date 2019-05-22
 */
@Data
@Configuration
@ConditionalOnExpression("!'${gateway.anti-crawler}'.isEmpty()")
@ConfigurationProperties(prefix = "gateway.anti-crawler")
public class AntiCrawlerPropConfig {

    private Long intervalTime;

    private String clientSecret;

    private String publicKey;

    private String privateKey;

    private String enabled;

}
